package com.qf.dao;

import com.qf.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {

    // 根据用户id查询用户
    public User getUserById(Integer id);


    public List<User> selectAllUsers2(@Param("rule") String rule);


    public List<User> selectUsersByKeyword(@Param("name") String name);

    public int updateUser(@Param("id") Integer id, @Param("name") String name);
}
